package com.hhkj.study.admin.resource.mapper;

import com.hhkj.study.admin.resource.entity.ResourceCourseVideo;
import com.hhkj.study.admin.resource.model.podo.ResourceCourseVideoDo;
import com.hhkj.study.admin.resource.model.podo.ResourceCourseVideoPo;
import com.ruoyi.common.base.biz.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
*
* @author SERVER
* @since 2024-09-06
*/
@Mapper
public interface ResourceCourseVideoMapper extends BaseMapper<ResourceCourseVideo, ResourceCourseVideoDo, ResourceCourseVideoPo> {

    /**
     * 通过视频id计算视频总时长
     * @param idList
     * @return
     */
    Long calculateLessonTimeByIdList(@Param("idList") List<Long> idList);
}
